package com.javalearn.demo.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import java.time.LocalDateTime;

@Data
public class User {
    private Integer id;//主键ID
    private String username;
    @JsonIgnore // 让springmvc把当前对象转换成json字符串的时候，忽略password，最终的json字符串中就没有password这个属性了
    private String password;
    private String nickname;//昵称
    private String email;
    private String userPic;//用户头像地址
    private String createTime;
    private String updateTime;
}
